package com.shux.springsource.event;

import org.springframework.context.ApplicationEvent;

/**
 * 描述：
 * 
 * <pre>HISTORY
 * ****************************************************************************
 *  ID   DATE           PERSON          REASON
 *  1    2018年2月5日      Simba.Hua         Create
 * ****************************************************************************
 * </pre>
 * @author Simba.Hua
 */
public class MessageEvent extends ApplicationEvent{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String message;
	public MessageEvent(Object source) {
		super(source);
	}
	public MessageEvent(Object source,String message) {
		super(source);
		this.message = message;
	}
	
	public void printMsg() {
		System.out.println(message);
	}

}
